<?php
class Pageley_Gateway_Database_Condition_ContainsSqlDecorator extends Pageley_Gateway_Database_Condition_SingleSqlDecorator {
	 
    public function __construct($decoratedCondition, $query) {
        parent::__construct($decoratedCondition, $query);
    }
    
	public function getValues() {
	     $values = $this->getDecoratedCondition()->getValues();
	     foreach($values as $key => $value) {
	     	$values->put($key, "%" . $value . "%");
	     }
	     return $values;
	}
    
    public function getOperator() {
        return "LIKE";
    }
}